/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.shelf.entity.ShelfProduct
   Module Description   :

   Date Created      : 2010/1/25
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.shelf.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_VIEW_SHELF_PRODUCT")
public class ViewShelfProduct {

	/**
	 * 流水號(商品編號+類別編號)
	 */
	@Id
	@Column(name = "V_UK")
	private String uk;

	/**
	 * 商品編號
	 */
	@Column(name = "PRODUCT_ID", length = 8)
	private String productId;

	/**
	 * 類別編號
	 */
	@Column(name = "CATEGORY_ID")
	private long categoryId;

	/**
	 * 商品名稱
	 */
	@Column(name = "PRODUCT_NAME", nullable = false, length = 100)
	private String productName;

	/** 上架起始日期時間 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "START_DATE")
	private Date startDate;

	/** 上架結束日期時間 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "END_DATE")
	private Date endDate;

	/** 商品促銷小標 */
	@Column(name = "PROMOTE_NAME", length = 200)
	private String promoteName;

	/** 上架售價 */
	@Column(name = "SHELF_PRICE", nullable = false, columnDefinition = "numeric(10,2)")
	private BigDecimal shelfPrice;

	/** 備註 */
	@Column(name = "SHELF_MEMO", length = 200)
	private String shelfMemo;

	/**
	 * 顯示順序(1~9,default 9 ，由大排到小，9最大)
	 */
	@Column(name = "SHOW_SEQ")
	private int showSeq;

	/**
	 * 商品类别更新时间
	 */
	@Column(name = "MODIFY_DATE")
	private Date modifyDate;

	/**
	 * 商品类别详细路径
	 */
	@Column(name = "CATEGORY_PATH")
	private String categoryPath;

	@Column(name = "PRODCUT_CATEGORY_ID")
	private String productCategoryId;

	@Column(name = "IS_DELETE")
	private String isDelete;

	/**
	 * 主目錄編號
	 */
	@Column(name = "MAIN_CATEGORY_ID")
	private int mainCategoryID;

	/** 商品售價 */
	@Column(name = "LIST_PRICE", columnDefinition = "numeric(10,2)")
	private BigDecimal listPrice;

	public long getCategoryId() {
		return categoryId;
	}

	public String getCategoryPath() {
		return categoryPath;
	}

	public Date getEndDate() {
		return endDate;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public BigDecimal getListPrice() {
		return listPrice;
	}

	public int getMainCategoryID() {
		return mainCategoryID;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public String getProductCategoryId() {
		return productCategoryId;
	}

	public String getProductId() {
		return productId;
	}

	public String getProductName() {
		return productName;
	}

	public String getPromoteName() {
		return promoteName;
	}

	public String getShelfMemo() {
		return shelfMemo;
	}

	public BigDecimal getShelfPrice() {
		return shelfPrice;
	}

	public int getShowSeq() {
		return showSeq;
	}

	public Date getStartDate() {
		return startDate;
	}

	public String getUk() {
		return uk;
	}

	public void setCategoryId(long categoryId) {
		this.categoryId = categoryId;
	}

	public void setCategoryPath(String categoryPath) {
		this.categoryPath = categoryPath;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public void setListPrice(BigDecimal listPrice) {
		this.listPrice = listPrice;
	}

	public void setMainCategoryID(int mainCategoryID) {
		this.mainCategoryID = mainCategoryID;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public void setProductCategoryId(String productCategoryId) {
		this.productCategoryId = productCategoryId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public void setPromoteName(String promoteName) {
		this.promoteName = promoteName;
	}

	public void setShelfMemo(String shelfMemo) {
		this.shelfMemo = shelfMemo;
	}

	public void setShelfPrice(BigDecimal shelfPrice) {
		this.shelfPrice = shelfPrice;
	}

	public void setShowSeq(int showSeq) {
		this.showSeq = showSeq;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public void setUk(String uk) {
		this.uk = uk;
	}
}